package ynu.sxp.demoapp.entity;

import jakarta.persistence.*;
import lombok.Data;
import ynu.sxp.demoapp.common.BaseEntity;

@Data
@Entity
@Table(name = "deliveryaddress")
public class DeliveryAddress extends BaseEntity {
    @Column(length = 20, nullable = false)
    private String contactName;

    @Column(nullable = false)
    private Integer contactSex;

    @Column(length = 20, nullable = false)
    private String contactTel;

    @Column(length = 100, nullable = false)
    private String address;

    @Column(length = 20, nullable = false)
    private String userId;
}